package org.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.chen.domain.entity.VideoVoice;

import java.util.List;

@Mapper
public interface VoiceMapper extends BaseMapper<VideoVoice> {
    
    /**
     * 获取所有语音ID
     */
    @Select("SELECT voice_id FROM video_voice")
    List<String> selectAllVoiceIds();
    
    /**
     * 批量插入
     */
    int batchInsert(@Param("list") List<VideoVoice> list);
    
    /**
     * 批量更新
     */
    int batchUpdate(@Param("list") List<VideoVoice> list);
}